-
Notifications
You must be signed in to change notification settings - Fork 11
fix canSend #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix canSend #2
Conversation
|
Hmm, I looked into this a bit more, and I think the main bug is in This PR only prevents the AsyncClient from going into a state where Here
In the more mature WebSocket code here we see how the I will submit a PR in our ESPAsyncWebserver fork to fix the EventSource. |
|
The change here are still good though - it prevents the socket from going into a bad state when |
|
That's debatable. I don't think it deserves much thinking. But how would you document the "canSend()" function? |
|
The name What The whole |
|
(my main issue is that |
See me-no-dev#152
This fixes the other problem I had in esphome/esphome#1018, may be
this patch will also make unnecessary the changes I'm making there where I build a bigjsonwith all the initial states.I'll be testing a bit more this patch, but good thing we can push it to ESPHome from here.